package com.ewanghuiju.app.ui.my.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ewanghuiju.app.R;
import com.ewanghuiju.app.component.ImageLoader;
import com.ewanghuiju.app.model.bean.local.VipEquityBean;

/**
 * @author sj  qq:751943509
 * @class 会员中心权益信息
 * @time 2020/2/20
 */
public class VipCenterEquityListAdapter extends BaseQuickAdapter<VipEquityBean, BaseViewHolder> {
    public VipCenterEquityListAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, VipEquityBean item) {
        helper.setText(R.id.tv_equity_title, item.getTitle());
        ImageView iv_con = helper.getView(R.id.iv_equity_icon);
        ImageLoader.load(mContext, item.getIcon(), iv_con);
    }
}
